# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ring
_pkgname=ring
pkgver=0.10.1
pkgrel=4
pkgdesc='Python library that shows a way to control cache in point of view of code - not about storages.'
arch=('any')
url='https://pypi.org/project/ring/'
license=('BSD')
depends=('python' 'python-wirerope' 'python-mock' 'python-pymemcache'
         'python-diskcache' 'python-inspect2' 'python-six')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('109a308eb0178197522c09e49ac2482723f40da737c10991b2b028458650bbebbd24358fe229a7c7ec0e21fcbb45a98a5c1683c8de8e7b0bc11ad4bad2c1f305')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}
